<!doctype html>
<html class="no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>福娃总排行榜</title>
	<meta name="renderer" content="webkit">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="{{ static_url("amazeui/css/amazeui.min.css") }}">
    <link rel="stylesheet" href="{{ static_url("amazeui/css/youxi_style.css") }}">
    <link rel="stylesheet" href="{{ static_url("amazeui/css/rem_style.css") }}">
</head>
<body>
	<div class="am-page" id="">
        <div class="yx-content yx-content-style" id="yx-topall">
            {% if not ranks %}
            <div id="xy-top-myplace">
                <div class="am-cf xy-top-myplace" style="text-align:center;">暂无排名信息，请稍后再试</div>
			</div>
            {% else %}
            <!--start:冠军-->
            {% if ranks[0] %}
            <div id="yx-top-bg">
                <div class='yx-top-bg'>
                    <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ ranks[0][0] }}'>
                        <div class='yx-top-ouser'><img id='championimage' src='{{ ranks[0][3] }}' /></div>
                        <div id='championname' class='yx-top-oname'>
                            <span>{{ ranks[0][2] }}</span>
                        </div>
                        <div class='xy-champion'>冠军</div>
                    </a>
                </div>
            </div>
            {% end %}
            <!--end:冠军-->
            <!--start:my-->
            <div id="xy-top-myplace">
                {% for rank in ranks  %}
                {% if rank[0] == userid %}
                <div class='am-cf xy-top-myplace'>
                    <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ userid }}'>
                        <div class='xy-top-ranking'>{{ c_rank }}</div>
                        <img src='{{ rank[3] }}' class='xy-mess-face'/>
                        <div class='xy-mess-name'>{{ rank[2] }}</div>
                        <div class='xy-mess-nums'>共{{ int(rank[1]) }}个福娃</div>
                    </a>
                </div>
                {% end %}
                <div class="am-cf xy-top-myplace" style="text-align:center;">目前你还没有进入100名内</div>
                {% end %}
			</div>
            <!--end:my-->
            <!--start:rankList-->
            <div id="toplist" class="yx-top-list">
				<ul id = "toplistu">
                    {% for rank in ranks %}
                    <li class='am-cf xy-top-listcont'>
                        <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ rank[0] }}'>
                            <div class='xy-top-ranking'>{{ i }}</div>
                            <img src='{{ rank[3] }}' class='xy-mess-face'/>
                            <div class='xy-mess-name'>{{ rank[2] }}</div>
                            <div class='xy-mess-nums'>共{{ int(rank[1]) }}个福娃</div>
                        </a>
                    </li>
                    {% end %}
				</ul>
			</div>
            <!--end:rankList-->
            {% end %}
        </div>


















        {% if ranks %}
		<div class="yx-content yx-content-style" id="yx-topall">
			<div id="yx-top-bg">
                <div class='yx-top-bg'>
                    <!--<a href="http://stat.boss89.com/stat/rank/100000077" style="position:absolute;top:0.05rem;left:5.5rem;color:#fdc945;">福娃排行榜</a>-->
                    {% if ranks.get("1") %}
                    <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ list(ranks.get("1")['users'])[0] }}'>
                        <div class='yx-top-ouser'><img id='championimage' src='{{ avatar.get(list(ranks.get("1")['users'])[0])[1] }}' /></div>
                        <div id='championname' class='yx-top-oname'>
                            <span>
                                {% if len(ranks.get("1")['users']) == 2 %}
                                    {{ avatar.get(list(ranks.get("1")['users'])[0])[0][0:1] }},
                                    {{ avatar.get(list(ranks.get("1")['users'])[1])[0][0:1] }}
                                {% else %}
                                    {{ avatar.get(list(ranks.get("1")['users'])[0])[0] }}
                                {% end %}
                            </span>
                        </div>
                        <div class='xy-champion'>冠军</div>
                    </a>
                    {% end %}
                </div>
            </div>
			<div id="xy-top-myplace">
                {% if c_rank > 0 %}
                <div class='am-cf xy-top-myplace'>
                    <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ userid }}'>
                        <div class='xy-top-ranking'>{{ c_rank }}</div>
                        <img src='{{ avatar.get(userid)[1] }}' class='xy-mess-face'/>
                        <div class='xy-mess-name'>{{ avatar.get(userid)[0] }}</div>
                        <div class='xy-mess-nums'>共{{ ranks.get(str(c_rank))['num'] }}个福娃</div>
                    </a>
                </div>
                {% else %}
                <div class="am-cf xy-top-myplace" style="text-align:center;">目前你还没有进入100名内</div>
                {% end %}
			</div>
			<div id="toplist" class="yx-top-list">
				<ul id = "toplistu">
                    {% for i in [str(x) for x in range(1, 100)] %}
                    {% if ranks.get(i) %}
                    <li class='am-cf xy-top-listcont'>
                        <a href='http://wsim.66boss.com/toplist/fuwa_info.html?user={{ list(ranks.get(i)['users'])[0] }}'>
                            <div class='xy-top-ranking'>{{ i }}</div>
                            <img src='{{ avatar.get(list(ranks.get(i)['users'])[0])[1] }}' class='xy-mess-face'/>
                            <div class='xy-mess-name'>
                                {% if len(ranks.get(i)['users']) == 2 %}
                                {{ avatar.get(list(ranks.get(i)['users'])[0])[0] }}，
                                {{ avatar.get(list(ranks.get(i)['users'])[1])[0] }}
                                {% else %}
                                {{ avatar.get(list(ranks.get(i)['users'])[0])[0] }}
                                {% end %}
                            </div>
                            <div class='xy-mess-nums'>共{{ ranks.get(i)['num'] }}个福娃</div>
                        </a>
                    </li>
                    {% end %}
                    {% end %}
				</ul>
			</div>
		</div>
        {% end %}
	</div>
</body>
<script src="http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="{{ static_url("amazeui/js/amazeui.min.js") }}"></script>
<script src="{{ static_url("amazeui/js/rem.js") }}"></script>
</html>